package oakclub.thrift.impl;

import oakclub.global.Container;
import oakclub.service.ActivityService;
import oakclub.thrift.service.Utility;
import org.apache.thrift.TException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class UtilityImpl implements Utility.Iface
{
    protected final Logger logger = LoggerFactory.getLogger(UtilityImpl.class);

    public boolean isOnline(long userId) throws TException
    {
        ActivityService activityService = (ActivityService) Container.getComponent(ActivityService.class);
        return activityService.isOnline(userId);
    }
}
